package score_management_system;

public class Student {
    private String name;
    private int id;
    private int chineseScore;
    private int mathScore;
    private int englishScore;

    public Student(String name, int id, int chineseScore, int mathScore, int englishScore) {
        this.name = name;
        this.id = id;
        this.chineseScore = chineseScore;
        this.mathScore = mathScore;
        this.englishScore = englishScore;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getChineseScore() {
        return chineseScore;
    }

    public void setChineseScore(int chineseScore) {
        this.chineseScore = chineseScore;
    }

    public int getMathScore() {
        return mathScore;
    }

    public void setMathScore(int mathScore) {
        this.mathScore = mathScore;
    }

    public int getEnglishScore() {
        return englishScore;
    }

    public void setEnglishScore(int englishScore) {
        this.englishScore = englishScore;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer();
        sb.append("学号：").append(id).append("  ");
        sb.append(name).append(" ");
        sb.append("  语文：").append(chineseScore);
        sb.append("  数学：").append(mathScore);
        sb.append("  英语：").append(englishScore);
        return sb.toString();
    }
}
